//   OrderManager
/* 订单管理 */
import http from "./http"

//获取热销信息列表
/* pageNumber: 1
pageSize: 10
orderNo: 
orderStatus:  */
const orders = (pageNumber = 1, pageSize = 10, orderNo = "", orderStatus = "") => {
    return http.get('/api/orders', {
        params: {
            pageNumber, pageSize, orderNo, orderStatus

        }
    })
};
//订单详情
const orderDetail = (id) => {
    return http.get(`/api/orders/${id}`)
}
//配货
const checkDone = (ids) => {
    return http.put('/api/orders/checkDone', {
        ids
    })
}
//出库
const checkOut = (ids) => {
    return http.put('/api/orders/checkOut', {
        ids
    })
}
//关闭订单
const orderClose = (ids) => {
    return http.put('/api/orders/close', {
        ids
    })
}

export default {
    orders, orderDetail, checkDone, checkOut, orderClose
}